package models;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;

import org.joda.time.DateTime;

@Entity
public class Administrateur extends Utilisateur
{
	@ManyToMany(cascade=CascadeType.PERSIST)
	public List<Categorie_forum> forums;
	
	public Administrateur(String pseudo, String mdp, String email, Date date_derniere_connexion, boolean is_admin) 
	{
		super(pseudo, mdp, email, date_derniere_connexion, is_admin);
		this.forums = new ArrayList<Categorie_forum>();
	}
	
	public String toString()
	{
		return this.pseudo;
	}
}
